package selef.xiafan.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import selef.xiafan.entity.order.OrderCategory;

import java.util.List;

/**
 * @author xiafan
 * @version 1.0
 * @date 2021/7/20 19:44
 */
public interface OrderCategoryDao extends JpaRepository<OrderCategory,Integer> {
    List<OrderCategory> findAllByOrderId(String orderId);

    void deleteAllByOrderId(String orderId);

}
